<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
    <head>
    <meta charset="UTF-8">
        <style>
            .input-mall {
                border: 1px #b1b1b1 solid;
                width: 80px;
                line-height: 20px;
                padding: 1px 5px;
                min-width: 80px;
                color: #333;
            }
        </style>
    </head>
    <jsp:include page="/WEB-INF/jsp/header.jsp"/>
<body>
<div class="body-main">
    <form id="flowCreate" action="">
        <table class="add-table form-table">
            <tr>
                <input type="hidden" value="${id}" name="id">
            </tr>
            <tr>
                <th><span class="required">分配至：</span></th>
                <td>
                    <div class="layui-input-inline">
                        <select class="select-style" id="trackerId" name="trackerId">
                            <option value>请选择</option>
                        </select>
                    </div>
                </td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript"
        src="${basePath}/static/js/zzsc/common/dgg.verify.js?v=${version}"></script>
<script src="${rootUrl}/static/js/zzsc/common/files/annex.js?v=${version}" type="text/javascript" charset="utf-8"></script>

<script>
    $(function(){
        changUser($("#trackerId"));
    });
    function changUser(obj) {
        $(obj).find("option").remove();
        $(obj).append("<option value=''>请选择</option>");
        $.post(sysInfo.basePath + '/zzsc/common/find_user_choose.do',{type:'role', roleCode:'HUNTING_ADVISOR'}, function (result) {
            if (result.code == 0) {
                $.each(result.data, function (i, item) {
                    $(obj).append("<option value='" + item.id + "'>" + item.realName+item.loginName + "</option>");
                });
            } else {
                DGG.Errors("系统错误，请联系管理员");
            }
        });
        $(obj).select2({
            placeholder: "请选择",
            allowClear: true,
            width: "200px",
            language: "zh-CN"
        });
    }
</script>
</body>
</html>
